package mysql

import "gorm.io/gorm"

type Products struct {
	gorm.Model
	Name   string  `gorm:"type:varchar(20);not null;comment:名称"`
	Image  string  `gorm:"type:varchar(420);not null;comment:图片"`
	Number string  `gorm:"type:varchar(20);not null;comment:编号"`
	Price  float64 `gorm:"type:decimal(10,2);not null;comment:价格"`
	Owned  string  `gorm:"type:varchar(20);not null;comment:所属人"`
	UserId int     `gorm:"type:int(11);not null;comment:用户ID"`
}
